Repository navigation
fix(metadata-protocol,rest,runtime)!: a name only disabled packages hold answers 404 at _env, and its package-less customization is withheld (ADR-0150 D3, D4) - #33995
Conversation
…e-less row of a key whose every holder is disabled A package-less row whose key an installed package holds is that holder's customization (ADR-0150 D4, owned over every holder, disabled included). With every holder disabled, the bare read on the served and execution faces now answers as if no row were stored, at any member, a locale the holder never shipped included; the row is kept and served again on re-enable. The environment's own item (no holder at its key) is served as before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…ackages hold A disabled package holds no name, so `/meta/:type/_env/:name` of a name only disabled packages hold is admitted as a name no package holds and answers the read's own 404 on both transports, where it refused 409 naming the disabled packages. The item face withholds every customization of such a name with its holders, so the read never serves one. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…control Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…nv` and package-less row reads Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…package holds the name through a stored row The protocol's `_env` admission cannot read stored rows, so a name only disabled packages hold in the registry is still refused, now marked. Each `_env` door admits that marked refusal only when the read naming no package withholds the name, and answers its 404; when that read serves an item, an enabled package holds the name through its stored row and the 409 stands. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…holder CONTROL's stored row Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…NG banner and ADR-0087 disposition Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
… on main The stored-row double answers `find` only, which is what the bare read uses for the row-holder CONTROL; `findOne` returns to main's null, so the doubles declare no findOne body the engine-double contract has to pin. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
The diff narrows (a served customization now answers 404) and widens nothing: the `_env` move replaces one refusal with another. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
📓 Docs Drift CheckThis PR changes 3 package(s): 33 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 44 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c224ea26019eb65d1fe342b41df07057c70e594a && git checkout c224ea26019eb65d1fe342b41df07057c70e594a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 01598d936f47378c02354a9c20cb08f0346a8c2c 0f5f95d08060d9c68390c6fe4f11bfece0ffb084 && git checkout -B drift-repro 01598d936f47378c02354a9c20cb08f0346a8c2c && git merge --no-ff 0f5f95d08060d9c68390c6fe4f11bfece0ffb084
node scripts/docs-audit/affected-docs.mjs --json 01598d936f47378c02354a9c20cb08f0346a8c2c
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12 Request: review · PR #33995 · area S5 · Fixes #33385, #33401 · head
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe narrowing makes a declared refusal real. ADR-0150 D3: a disabled package holds no name. D4 and R15: a package-less row over a package-held name is that holder's customization. Ruling 6882483833: withhold it, serve the environment's own item. Nothing declared is taken at the consumer; the row is kept and returns on re-enable. Probes, read in the tree:
S1 (should-fix) — the S2 (should-fix) — a third S3 (should-fix) — N1 (nit) — the battery pin names No must-fix. Implemented-by: VERDICT: PASS |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Review — FAIL (should-fix open; this head is not landable)Head-sha: The design is accepted. The narrowing makes ADR-0150's declared refusal real (D3, D4/R15, seat ruling 6882483833) and takes no capability away: the row is kept and comes back on re-enable. REST and the runtime agree on 404
The delta review on the next head will cover S1–S3 plus any code that moves. |
…hat judged the name A draft read (`?state=draft`, `?preview=draft`) or the deprecated layered view (`?layers=`) reads other rows than the plain read the door judges with, so for it the refusal of a name only disabled packages hold stands, as on main. Read off the raw query, so the answer depends neither on the caller's draft admission nor on whether a draft exists. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…packages hold as `/meta` does `namedMappingRead` now reads the refusal's mark: when the read naming no package withholds the name, the mapping answers not found, naming no package, where it was refused 409 naming the disabled holder. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…404 at `_env/NAME` The changeset gains the Skills-docs line and names the import door's move and the draft and layered reads that keep the 409. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…ONTROL Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…admitted to them The guard read the raw query, which the runtime draft-switch census reads as an unadmitted draft switch. Both doors now judge with the read the caller is actually answered: an admitted draft switch or the layered view keeps the marked refusal (409, as on main); a caller `mayReadPendingDrafts` does not admit is answered the plain read, and judged as it. The REST qualified route is handed `resolveExecCtx` for that, asked only once the refusal is marked. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…red override as effective (objectstack-ai#34169) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbNTugWasvhTMrtCZiFGrZYK)_ Part of objectstack-ai#32849 (the bare layered read's `effective` exit; the read naming no member, measured below, stays open on objectstack-ai#32849) Clause-②: no Metadata-protocol: none **objectstack-ai#33885 has merged.** This branch started from `claude/area-E1-32622`. After objectstack-ai#33885 merged, `origin/main` was merged in (`c9112d29`), so the diff is now this PR's own four files (+125/−7). The own-diff patch-id `c0f3f1897e73032813735aa937738d8e0c8780a6` is unchanged. ## 维护者速读 - 改了什么:App 的 `.custom` pair 存了一行声明覆盖附加包 Z 自有成员 `fr-FR` 的邮件模板(`overrides.package: Z`)。objectstack-ai#33815 之后普通裸读已给出覆盖,但不带包的分层读 `?member=fr-FR&layers=true` 的 `effective` 仍是 Z 原版 `zeta fr-FR`、`overlay` 为空;现在它与 `?package=Z` 一致:`code` 是 Z 原版,`overlay` 和 `effective` 是覆盖,信封指向 Z。 - 为什么改:分层读的 `effective` 定义为「普通读会返回的内容」,声明了的覆盖应在每个给出 Z 该成员的出口被服务(ADR-0146 D8 第 2 项、ADR-0150 D4);Studio 编辑器读的正是这个出口。 - 风险与回滚:只在普通裸读已经改址到 Z 的同一情形下生效(复用同一个判定函数);未声明覆盖、声明给 X 的行(仍 409)、X 自己的 `en-US`、待发布草稿层均不变(已钉)。回滚即还原本 PR,存储数据不变。 - 先看:`packages/metadata-protocol/src/protocol-meta-layered-reads.ts` 中 `declaredOverrideAt` 与 `draftPackageId` 两处。 - 两分钟验证:`pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/package-scoped-exact-qualifier.test.ts -t 'the bare layered read serves'`,预期 6 条全绿。 - 需要你做的:无,席位落地。 ## What changes Own files (four): `packages/metadata-protocol/src/protocol-meta-layered-reads.ts`, `packages/metadata-protocol/src/protocol-meta-item-face.ts` (one `export` keyword and one docblock sentence, no behaviour), `packages/objectql/src/package-scoped-exact-qualifier.test.ts`, `.changeset/32849-bare-layered-read-declared-override.md`. No `protocol.ts` edit. `getMetaItemLayered`, naming no package and judged neither served nor refused by `servedAddressJudgment`, now asks `declaredMemberOverrideAddressOf` (the one predicate the plain read uses since objectstack-ai#33815, exported from the item face for this). When it names the member's one enabled shipper Z, the read takes Z's address for its layers, as the plain read does, so `effective` is the override `?package=Z` serves. The pending draft layer (`withDraft`, the Studio door) is not moved: it stays at the address the strict draft read takes (`strictDraftReadAddress`), because the plain read's strict draft read is outside the arm too. Re-addressing it would have made the draft layer `null` where the strict draft read serves the pair's draft (measured: at `?package=Z` the draft layer is `null`). | read (both install orders) | before | after | |:--|:--|:--| | bare `?member=fr-FR&layers=true`, row declares Z | code `zeta fr-FR`, overlay null, effective `zeta fr-FR` | code `zeta fr-FR`, overlay `pair fr-FR`, effective `pair fr-FR`, envelope Z (= `?package=Z`) | | same, with drafts, a pair draft pending | draft `pair fr-FR draft` | unchanged (effective as above) | | `?package=Z&member=fr-FR&layers=true` | effective `pair fr-FR` | unchanged | | bare `?member=en-US&layers=true` (X's own) | `suitex en-US` | unchanged | | bare, no row / undeclared pair row | effective `zeta fr-FR`, overlay null | unchanged | | bare, row declares X (objectstack-ai#32606 shape) | 409 naming X and Z | unchanged | | door step 1c, `packagelessLayeredReadRefusal` | no refusal | unchanged | Nothing refused becomes served or the reverse; no authorable key or value moves. ## Tests New top-level describe in the shared real-`SchemaRegistry` harness `packages/objectql/src/package-scoped-exact-qualifier.test.ts`: `[objectstack-ai#32849] the bare layered read serves the pair's declared override of an addition Z's own locale as effective, as ?package=Z does` (6 tests): - fix pin, both install orders: bare layers equal `?package=Z`'s (`effective` deep-equals the `?package=Z` document), step 1c refuses nothing, `effective` equals the plain bare read, X's `en-US` untouched. - draft pin: the draft layer is the strict draft read's (`pair fr-FR draft`), `?package=Z` has none. - CONTROL no override x2 (no row / undeclared pair row): Z's own, no overlay. - CONTROL row declares X: 409 `RESOURCE_CONFLICT` naming X and Z. BASE measured on `e516f353` (the objectstack-ai#33885 head) with a temporary probe in this harness before any edit: bare effective `zeta fr-FR`, overlay null, in both orders; `?package=Z` effective `pair fr-FR`. <details><summary>Ablations (each through `scripts/ablation-replace.mjs`, metadata-protocol rebuilt, `ablation-dist-preflight` marker present in 2 dist files, auto-restore blob equals HEAD with `git diff HEAD` empty, rebuilt, marker absent from all 24 dist files)</summary> | | mutation | result (`-t 'the bare layered read serves'`) | |:--|:--|:--| | A1 | the arm's call replaced by `undefined` | 3 failed, 3 passed: both fix pins, `expected [ 'zeta fr-FR', null, …(2) ] to deeply equal [ 'zeta fr-FR', 'pair fr-FR', …(2) ]`; the draft pin, `expected [ 'zeta fr-FR', 'pair fr-FR draft' ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft' ]` | | A2 | `isServedOverrideRowOf(row, shipper, installed)` replaced by `true` | 2 failed, 4 passed: the undeclared-row CONTROL, `expected [ 'zeta fr-FR', 'pair fr-FR', …(2) ] to deeply equal [ 'zeta fr-FR', null, …(2) ]`; the X-declared CONTROL, `the read answered; a refusal was expected` | | A4 | the draft address re-addressed with the arm (`declaredOverrideAt ?? request.packageId`) | 1 failed, 5 passed: the draft pin, `expected [ 'pair fr-FR', null ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft' ]` | </details> ## Acceptance notes - The no-row CONTROL pins an unchanged outcome by construction: re-addressed to Z, Z's exact layers with no row answer Z's own `fr-FR` too. The undeclared-row CONTROL is the one that catches an arm ignoring the declaration (A2). - Still open on objectstack-ai#32849, measured on `e516f353` with the same probe (X ships `fr-FR`, Z ships `en-US`, the pair row declares Z for `en-US`): the read naming NO member serves Z's `zeta en-US`, both the plain bare read and the bare layered read, while the bare layered member read `?member=en-US` takes the override after this change. `/published` calls the layered read with no member (`meta-item-history-routes.ts`), so it reads that same exit; not measured at the door. The helper answers `undefined` when no member is named; that exit lives in the item face first and is left to the card. - Measured through the protocol with a real `SchemaRegistry`, stored rows and hydrated rows (the objectstack-ai#33815 footing), not through the HTTP save door; the door's own step 1c is pinned at the protocol. ## Verification Head `f23319f9` (merges of `origin/claude/area-E1-32622` `e57e7c05` and of `origin/main` up to `27c2f1ea`, then `origin/main` again just before opening; the derived gate union ran on `24ecb579`, the head before that last merge). Every command ran under `scripts/pm/os-verify-lock.sh`. - Before the last merge, on `96a0a52e`: `@objectstack/metadata-protocol` typecheck 0, test `22902 passed | 43 skipped`; `@objectstack/objectql` typecheck 0, test `13252 passed`; `@objectstack/rest` typecheck 0, test `8763 passed | 355 skipped`; `@objectstack/runtime` typecheck 0, test `12414 passed | 19 skipped`. - After the merge, on `24ecb579` (incoming main touched metadata-protocol, none of rest/runtime): rebuilt, metadata-protocol typecheck 0, test `22926 passed | 45 skipped`; the harness file `321 passed`. - `git merge-tree --write-tree --name-only` of `24ecb579` against every open PR sharing a file, and main: objectstack-ai#33995 (`7b65fff0`, item face and harness) clean, objectstack-ai#33979 (`999b09d9`, protocol.ts) clean, objectstack-ai#33885 (`e57e7c05`) clean, `origin/main` `27c2f1ea` clean. (Before the first main merge the harness conflicted with main's objectstack-ai#33817 block; resolved by keeping both describes.) - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on `24ecb579`: 75 derived families, every one exit 0 (exit codes captured before any pipe). `check:dual-build-cjs-loads` first answered exit 3 PREREQUISITE NOT MET (no dist for 41 packages) and answered 0 after a whole-tree `pnpm turbo run build --concurrency=2` under the lock; `check:type-check-debt` was interrupted mid-run once and re-run to exit 0. `--ran`: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN. Body gates on this body: `check-changeset-no-major` 0, `check-adr-0087-registration` 0 (with the PR payload too), `check-closing-keyword-parity` 0 (`GITHUB_EVENT_PATH`), `check-partof-closing-keyword` 0 (`PR_BODY`). - `pnpm lint`: exit 0 on `24ecb579`. - After the last merge of `origin/main` (14 commits; it touched `protocol-meta-item-reads.ts` and objectql `registry.ts`, not this diff), on `f23319f9`: closure rebuilt, metadata-protocol typecheck 0 and test `22926 passed | 45 skipped`, objectql typecheck 0, the harness file `321 passed`; ratchet families re-run there: `check:type-check-debt` 0, `check:type-check-coverage` 0, `check:nul-bytes` 0. - After objectstack-ai#33885 merged: merge of `origin/main` `dfb8ed35` → head `c9112d29`. The one add/add conflict was objectstack-ai#33885's own changeset, resolved to main's landed text; none of this PR's files conflicted. Closure rebuilt, metadata-protocol typecheck 0, objectql typecheck 0, harness `321 passed`, all under the verify lock. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ <!-- signed: domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…the holder's own object under a disabled holder Since the envelope is grafted only at the holder's own (object, name), a package-less action reaches the withhold arm unstamped: on another object it binds to no holder and is served, on the holder's object it is withheld. The changeset names the 409 to 501 move on an engine without by-name reads. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
|
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12 Request: delta review · PR #33995 · area S5 · Fixes #33385, #33401 · head
|
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Contract reviewServed-tier: Delta round, first. Base record: 6905931301 at head 69f4887 (PASS, S1 open, N1 to N5). Inputs added this round: the area's delta request 6907727788 and the dev delta report 6907712796. ① Derived judgments
② Semver levelUnchanged and still right on the merged tree: ③ Boundary flagsFresh review on the seat's order: review#2 did not answer the area's request 6904125301 (00:39Z) or the seat's mailbox knock 6904921008 (01:37Z).
④ Design judgmentS1: closed Both legs of #33401's action CONTROL are pinned in The area's correction of the base record holds on the merged tree. I read both legs as decided by this PR's arm. The body's "unreachable" note is replaced by a correction that is true of the tree, with one loose sentence (N6). The table carries both action rows, FROM equal to TO. N3: fixed on the prose faces. The 409 to 501 row is in the body and the changeset has the matching sentence; both are right against N1, N2, N4, N5: unchanged, carried as in ③. N6 (nit) — the body's correction says both legs "reach the new arm through N7 (nit) — the body and the dev report name #34259 as the carrier of N2 and N5, and that card is closed No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Review — PASSHead-sha: Closed:
The merge: it moved none of this PR's own hunks. The two PR source files that changed ( Declarations: unchanged and still right on the merged tree: Checks: 40 success, 17 skipped, none red; Before close (prose faces; the head does not move):
Not governed: the area lands this PR per |
|
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12 席位核对Verdict: ACCEPT · head
|
Requested by Steedos · project thread
Fixes #33385
Fixes #33401
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: updated here — content/docs/data-modeling/import-mappings.mdx (no
skills/**file teaches an_envanswer)BREAKING for a read of an environment customization (a package-less row) of a name whose every holding package is disabled: the bare read and the execution read answered the row (200) and now answer 404 as if it were not saved; re-enabling the package serves it again.
_envof such a name moves from 409 naming the disabled packages to 404, at/metaon both transports and at the import door'smappingName: "_env/NAME"(404 MAPPING_NOT_FOUND). The list and the execution list (GET /meta/:type) leave out the same customization while every holder is disabled, so they agree with the read of the name. On the write side, a save naming no package at a member the holder never ships is still accepted and kept, but is hidden from those reads until a holder is enabled again; a delete still removes it; a save at a shipped member is still refused403 NOT_OVERRIDABLE._envkeeps the 409 in three cases: an enabled package holds the name; it holds it through a stored row the read of the name serves; or the read carries?state=draft/?preview=draftfrom a caller admitted to drafts, or?layers=. That 409 names only the disabled registry holder. No migration: nothing stored changes (ADR-0087not-required (no-migration-prescription), in the changeset).The claim declared
Clause-②: no. The declaration self-check reads the #33401 withhold (served 200 to 404) as a narrowing and finds no widening: the_envmove replaces one refusal with another. So this body and the changeset declareno (narrowing). #33646'syes (narrowing)was for a diff that both widened and narrowed. The deviation is reported to the seat.维护者速读
/meta/:type/_env/:name在两个入口(REST 与 runtime)从 409(点名被停用的包)改为 404,导入接口的mappingName: "_env/名称"同样改为 404MAPPING_NOT_FOUND;环境里对这些包的名称做的无包定制(含包从未发布的语言版本)在停用期间不再被读出,列表与执行列表也一并不再列出,重新启用后原样恢复。_env仍然报冲突并点名已停用的包,裸读还在返回属于已停用包的定制内容;objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183 第 17 行(R4-B2)与 metadata-protocol: the bare read still serves an App-pair row of an email_template member whose only holder is disabled #32814 的席位裁决要求按"什么都没存"作答。_env仍保持 main 的 409;带?state=draft、?preview=draft或?layers=的_env读取也保持 409,不会露出启用包的草稿(均已钉住并做消融)。回滚即 revert 本 PR。packages/metadata-protocol/src/protocol-meta-item-face.ts(packagelessRowWithheld:启用包通过存储行持有名称时不再扣留,风险最高)、packages/metadata-protocol/src/protocol-meta-list-reads.ts(列表按同一判定剔除)、packages/rest/src/meta-qualified-item-route.ts(admitEnvironmentAddress:标记的拒绝只对普通读取与无草稿权限的调用方放行为 404)。pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/meta-qualified-item-route.test.ts,预期 381 个测试全部通过(在0f5f95d0实测)。What changes
One judgment, shared by both cards: a name whose every holder is disabled answers as if nothing were stored. That covers the bare read (served and execution faces), its
/layers, and_envon both transports. A disabled package's customization is never served, and nothing stored is touched.protocol-meta-item-face.ts: the read naming no package now also withholds a package-less row it reached when the row's key is held only by disabled packages (packagelessRowWithheldHolder). The key's holders come from the registry's one owner rule,overlayRowBindingwith every holder counted (seat ruling 6882483833 on metadata-protocol: the bare read still serves an App-pair row of an email_template member whose only holder is disabled #32814: ownership counts every holder, disabled included).nullis the environment's own item (D3 (a)) and is served.disabledOnlyHolderOf).admitEnvironmentQualifier(protocol-exact-qualifier.ts) still refuses a name only disabled packages hold. It is synchronous, it reads no stored rows, and its declared signature lives inprotocol.ts. The refusal now carries a registered-symbol mark (objectstack.metadata-protocol.disabledHoldersOnlyRefusal, the same pattern as the face'sstoredRowHoldersRefusal), set only after the read it would admit has passed the 501 judgment._envdoor handles the mark inadmitEnvironmentAddress:packages/rest/src/meta-qualified-item-route.tsandpackages/runtime/src/domains/meta.ts.getMetaItem) withholds the name, the door admits_env, and the read answers 404 naming no package.?state=draft(any case) and?preview=draftfrom a callermayReadPendingDraftsadmits to drafts, and the deprecated layered view?layers=. A caller who may not read drafts reads the active rows whatever switch it sends, so its draft switch is judged as the plain read (404), on both transports alike. REST asksresolveExecCtxfor that admission, which is whyrest-server.tshands the qualified route itsresolveExecCtx(deviation, approved by the area seat).packages/rest/src/import-mapping.ts#namedMappingRead: the import door's_env/NAMEreads the same mark and admits it the same way. A mapping only disabled packages hold answers404 MAPPING_NOT_FOUND, naming no package, asGET /meta/mapping/_env/NAMEanswers 404.content/docs/data-modeling/import-mappings.mdxdocuments the new 404 (review S3).protocol-meta-list-reads.ts#readFlattenedMetaItems(file approved by the area seat): the list and the execution list now leave out a package-less item that the read of its name withholds, through the samepackagelessRowWithheld. Before, both lists still carried anfr-FRrow the by-name read answered 404.protocol-meta-item-face.ts#packagelessRowWithheld: the arm is judged over the active rows the face already read. If an enabled package holds the name through one of those stored rows (one the registry has not hydrated, sooverlayRowBindingdoes not see it), the package-less row is served, as on main. Before this fix the arm withheld it in that cell. The list asks the same helper, which reads the active rows itself.[{ kind: 'package', packageId: B }], as on main; the enabled package holding the name through a stored row is not named. Pinned in both doors' CONTROLs.403 NOT_OVERRIDABLE, as before. Pinned indisabled-holder-packageless-row-doors.test.ts.packages/objectql/src/registry.ts: read only. H3 holds:overlaySlotBindingcounts every composite holder, so a package-less row of a disabled holder's key binds to that holder, andgetEnvironmentScopedItemanswersundefinedfor it._envread never reached the face as_env. Admitting on the registry alone would have served an enabled package's unhydrated stored row at_env. The mark plus the door's bare-read check closes that without touchingprotocol.ts.GET /meta/:type/_env/:name, REST and runtime, all 18PACKAGE_SCOPED_READ_TYPESRESOURCE_CONFLICTnaming the disabled holderRESOURCE_NOT_FOUND, naming no packagedashboardemail_templatepermissionreportadmitEnvironmentQualifier(objectql pin, row 17)GET /meta/email_template/:name?member=fr-FRand the execution read_env, bare read_envwith?state=draft(any case) or?preview=draft, REST and runtime, all 18 types_envwith?layers=true, samePOST …/importwithmappingName: "_env/NAME"RESOURCE_CONFLICTnaming itMAPPING_NOT_FOUND, naming no package; nothing written/layers_env, protocoladmitEnvironmentQualifier(review L2 N3)RESOURCE_CONFLICTnaming the holderNOT_IMPLEMENTED, the read that engine cannot judge (refusal to refusal)GET /meta/action/:name(objectql pin, review L2 S1), both registration ordersaccount; a package-less action of the name oncontactmainsince #33898; measured here with the arm ablated)_packageId(unchanged, CONTROL); re-enabled, the sameaccount_envwith a draft switch from a caller who may not read drafts, REST and runtime, all 18 typesRESOURCE_NOT_FOUND, as its plain read (both transports agree)getMetaItems/getMetaItemsForExecution(list, execution list)_envkeeps the marked 409The served-to-404 rows are narrowings (hence
Clause-②: no (narrowing), the!title and the BREAKING banner). The_envrows, and the import door's, replace one refusal with another (409 to 404). No answer widens.Tests
packages/objectql/src/package-scoped-exact-qualifier.test.ts(the face's shared real-registry harness; the area seat approved this file-surface extension):_envpin now asserts the marked 409 plus the withheld bare read. An unmarked-with-the-holder-enabled CONTROL is added beside it.[#33401]describe, the bare read at a never-shipped locale: four orders on both faces with re-enable as CONTROL; the answer with the row stored equals the answer with none; two holders both disabled, then both re-enabled giving the read's own 409; the hydrated row.packages/rest/src/meta-qualified-item-route.test.tsandpackages/runtime/src/domains/meta-qualified-item-read.test.ts, for everyPACKAGE_SCOPED_READ_TYPEStype:_envanswers 404 beside the other addresses' 404; re-enabled, the 409 naming the holder (CONTROL)./layersand_envanswer 404; re-enabled, the 409._envwith?state=draft,?state=DRAFTand?preview=draftanswers 409 and never the draft. With its unhydrated active row,_env?layers=trueanswers 409 and never the row.?state=draft, and both transports answer 404RESOURCE_NOT_FOUND, the same answer.details.candidatesis exactly[{ kind: 'package', packageId: B }], the disabled registry holder, in the draft/layered CONTROL and the row-holder CONTROL, on both transports.findfrom stored rows (empty unless a pin stores one);findOnestays main'snull.packages/rest/src/import-integration.test.ts(review S2, real engine and protocol): with the only holder disabled,_env/task_pkg_feedanswers 404MAPPING_NOT_FOUNDnaming no package,GET /meta/mapping/_env/task_pkg_feedanswers 404, and no row is written. Re-enabled, the 409 naming the holder (CONTROL).packages/objectql/src/disabled-holder-packageless-row-doors.test.ts(real ObjectQL engine, in-memory driver, real protocol; 5 tests):fr-FRrow, saved after boot or hydrated at boot, with the only holder disabled: the by-name read withholds it and neither list nor execution list carries any item of the name. Re-enabled, both listen-US,fr-FR,zh-CN(CONTROL).fr-FRsucceeds and keeps one package-less row, the read and both lists hide it, a save at shippeden-USis refused403 NOT_OVERRIDABLE; re-enabled it is served; a delete while disabled removes the row.fr-FRrow. The read servesENV fratfr-FRand Y'sOTHER enbare, both lists carryfr-FR, as on main;admitEnvironmentQualifierstill throws the marked 409.package-scoped-exact-qualifier.test.ts[review L2 S1](4 tests): the action legs above, each in both registration orders, with re-enable as CONTROL.scripts/ablation-replace.mjs --hold. Each mutate leg on metadata-protocol was rebuilt andablation-dist-preflightreturned 0; each restore leg was rebuilt,--absentreturned 0, and the restore was proved blob == HEAD.ablation-replace --delete; the mutation landed, and the restore matched the HEAD blob): rest 18 red of 371 and runtime 18 red of 381, one per type. In these harnessesfindOneanswersnull, so the ablated door answers404 NO_DRAFT.findOne:200with the enabled package's draft for all 18 types. This is the widening review S1 describes.?layers=arm removed, 14 types on each transport answered_env?layers=truewith404instead of409. That swaps one refusal for another; it does not widen. The guard keeps main's 409.69f48871:enabledRowHolds(...) ? undefined :replaced so the arm always withholds; rebuilt, preflight marker in 2 dist files. objectql 2 red of 330, exactly the two S5 orders. Restore: blob == HEAD,git diff HEADempty, rebuilt,--absentexit 0.69f48871: the list'spackagelessRowWithheldcall replaced by a never-true marker; rebuilt, preflight in 2 dist files. objectql 3 red of 330: both S1 cells and the S3 test's list assertion. Restore proved the same way.main, at8bbac030(test text as committed; the later amend changed only its comment), objectql 342 tests:packagelessRowWithheldnever withholds): 10 red, every[#33401]withhold cell and the lists; both action legs stay green.nullexemption replaced by the name's holders (disabledOnlyHolderOf): 2 red, exactly the two other-object action cells.isActionWithheldByDisabledPackage,isItemOfDisabledPackage): 4 red, the two same-object action cells and the two shipped-member CONTROLs. WithisItemOfDisabledPackagealone removed, only those two CONTROLs went red.ablation-dist-preflightexit 0. Each restore was proved by blob == HEAD and an emptygit diff HEAD, then rebuilt with--absentexit 0.import-integration.test.ts, the new pin; the 409 naming the holder came back.Acceptance notes
Correction (review L2 S1): an earlier body said the card's action CONTROL, "a same-name item on another object is still served", was unreachable. That was true of this branch's old base and false of
mainsince 68e726d (fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898), which grafts an action's envelope only onto the item its package holds at that(object, name). The branch now mergesmain(35cc6638), and both legs are pinned under a disabled holder, in both registration orders: on another object (contact) the package-less action binds to no holder (overlayRowBindinganswersnull) and is served as the environment's own item, with no_packageId; on the holder's own object (account) it is the holder's customization under its envelope and is withheld; re-enabled, both are served. Measured by ablation: the new arm reaches the other-object leg and its binding-nullexemption keeps it served, as onmain; the same-object leg is decided by the face's stamped-item rules (isActionWithheldByDisabledPackage,isItemOfDisabledPackage), as onmain, because the read reaches the face with the holder's envelope already grafted.The
_envdoor asks the bare read once more before it answers a marked refusal. That costs one extra protocol read, and only on the disabled-only path. The list askspackagelessRowWithheldper package-less item only when a disabled holder is in play, and that reads the item's active rows.Loose end (review#2 S4), carried by metadata-protocol: the draft and layered _env reads (?state=draft, ?preview=draft, ?layers=true) still refuse 409 for a name only disabled packages hold, where the plain _env read answers 404 #34261: the draft and layered
_envreads keep main's 409 here; whether they should also answer 404 when every holder is disabled is the follow-up. PR fix(metadata-protocol): the bare layered read serves a member's declared override as effective #34169 (claude/area-E1-32849-layered), which touched the face and both shared test harnesses, has merged and is inside the mergedmain.CI note: Test Core (3/8) was red at
d86adb40(run 43751883003) on@objectstack/scenariostest/runner/run-date.test.tstiming out on run date 2028-03-31, the known flake Queue-flake anchor: test/runner/run-date.test.ts #34081. This diff does not touch@objectstack/scenarios.Follow-ups, left unfixed; the area filed them:
disabledOnlyHolderOfjudges the name's holders, not the key's).not_plannedunder the maintainer's p3 standard (no user effect), so these cells are an accepted deviation: unpinned, each held by reading as the reviews state. Reopen it if a regression appears.PATCH /packages/:id/disabledocs (review L2 N4)._env409 (the review#2 S4 loose end above).Deviations
packages/rest/src/rest-server.ts: the qualified route's host object now hands itresolveExecCtx, on its own line as every registrar host spells it (execctx-consumer-censusunchanged). Outside the claimed surface; approved by the area seat.packages/metadata-protocol/src/protocol-meta-list-reads.ts: the list filter (review#2 S1). Approved by the area seat for this.packages/objectql/src/disabled-holder-packageless-row-doors.test.ts: a new test file for the review#2 S1/S3/S5 pins, on a real ObjectQL engine and protocol.Verification
All at head
0f5f95d0, which mergesmainat35cc6638. The box is shared, so wall-clock figures are not idle-box figures.Builds, typecheck and suites
pnpm install --frozen-lockfileexit 0, and the closure build of metadata-protocol, objectql, rest and runtime exit 0, with lockVERDICT command-exit 0.typecheckexit 0 for metadata-protocol, objectql, rest and runtime.disabled-holder-packageless-row-doors.test.ts+package-scoped-exact-qualifier.test.ts: 342/342. restmeta-qualified-item-route.test.ts: 381/381.Dogfood battery (narrowing arm)
0f5f95d0:pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' buildexit 0, thenpnpm --filter @objectstack/dogfood testexit 0.VERDICT command-exit 0.Gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderives 105 families at0f5f95d0. 103 ran locally, and each exited 0.check:dual-build-cjs-loadsexited 3, PREREQUISITE NOT MET. It readsdist/of packages this diff does not touch (studio,scenarios, and others).check:type-check-debtexited 3, because its closure build queued out on the shared verify lock (99).--ranreconciliation, with every line recorded ascommand :: exit code:105 derived, 103 run, 2 NOT-MEASURED, 0 UNRUN(exit 0).dispatch-gates --tier: no path-derived mandate; 1022 changed lines, under 3000. A narrowing owes one contract-review-tier review before the queue.git merge-tree --write-treeat0f5f95d0is clean againstorigin/main(31eb2aed) and against fix(metadata-protocol): the bare layered read serves a member's declared override as effective #34169, fix(metadata-protocol)!: the diff door refuses a bare two-holder name and compares one holder by ?package= #34147, feat(i18n): serve labels by i18n.sourceLocale as the authored language #34025, fix(metadata-protocol): an exact?package=read never answers another package's metadata-service copy of a doc, view or other type the exact qualifier does not judge #34241, and fix(metadata-protocol): two namespaces' stored permission sets of one name are each kept and served at their own package #34224 (claude/area-E1b-32780).pnpm lintand the full farm are CI's: PR check-runs at0f5f95d0: 53, of which 38 success and 15 skipped, none failed,mergeable_stateclean. They includeLint · ESLint,Test Core1/8 to 8/8,Type Check · workspace,Type Check · debt ledger,Type Check · consumer gates,Dogfood Regression GateandCheck Changeset.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12